// 吸顶交互函数封装
import { ref } from 'vue'
export function windowScroll() {
  const y = ref(0)
  window.addEventListener('scroll', () => {
    const windowScrolT = document.documentElement.scrollTop
    y.value = windowScrolT
    // console.log(y.value)
  })
  return { y }
}
